package client.popups.wizard;

import java.awt.Dimension;

import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JTextPane;
import javax.swing.JScrollPane;

public class AppointmentInfoWizard extends JPanel{
	private JTextField startTime;
	private JTextField endTime;
	private JTextField date;
	private JTextField title;
	private JTextPane description;
	
	public AppointmentInfoWizard() {
		
		this.setSize(325, 241);
		this.setPreferredSize(new Dimension(325,241));
		this.setMaximumSize(new Dimension(325,241));
		
		JLabel lblStart = new JLabel("Start:");
		lblStart.setBounds(10, 14, 40, 14);
		
		startTime = new JTextField();
		startTime.setBounds(49, 11, 50, 30);
		startTime.setColumns(10);
		
		JLabel lblSlutt = new JLabel("Slutt:");
		lblSlutt.setBounds(102, 14, 40, 14);
		
		endTime = new JTextField();
		endTime.setBounds(130, 11, 50, 30);
		endTime.setColumns(10);
		
		JLabel lblDato = new JLabel("Dato:");
		lblDato.setBounds(183, 14, 60, 14);
		
		date = new JTextField();
		date.setBounds(216, 11, 99, 30);
		date.setColumns(10);
		
		JLabel lblTittel = new JLabel("Tittel:");
		lblTittel.setBounds(10, 52, 40, 14);
		
		title = new JTextField();
		title.setBounds(49, 49, 266, 30);
		title.setColumns(10);
		
		JLabel lblBeskrivelse = new JLabel("Beskrivelse:");
		lblBeskrivelse.setBounds(10, 80, 79, 14);
		setLayout(null);
		
		JScrollPane scrollPane = new JScrollPane();
		scrollPane.setBounds(42, 105, 273, 125);
		add(scrollPane);
		
		description = new JTextPane();
		scrollPane.setViewportView(description);
		add(lblStart);
		add(startTime);
		add(lblSlutt);
		add(endTime);
		add(lblTittel);
		add(title);
		add(lblDato);
		add(date);
		add(lblBeskrivelse);
	}
	public JTextField getStartTime() {
		return startTime;
	}
	public JTextField getEndTime() {
		return endTime;
	}
	public JTextField getDate() {
		return date;
	}
	public JTextField getTitle() {
		return title;
	}
	public JTextPane getDescription(){
		return description;
	}
}
